<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common.jsp"%>
<script type="text/javascript">
function save1() {
        var pagetype="add";   
        var TOKEN=$("#TOKEN").val();
        var tCode=$("#tCode").val();
        var tName=$("#tName").val();
        var tValue=$("#tValue").val();
        var remark=$("#remark").val();
        var introduction=$("#introduction").val();
    	$.post("${rootDir }/system/add.user.do",
      	{	
    		pagetype:pagetype,
    		TOKEN:TOKEN,
    		tCode:tCode,
    		tName:tName,
    		tValue:tValue,
    		remark:remark,
    		introduction:introduction
		},function(data)
				{
				$.pdialog.closeCurrent();
				}
		);
    	}
function save() {
	var auditForm=$("#form1");  
    auditForm.submit(); 
    $.pdialog.closeCurrent();
  }
</script>
<div class="pageContent">
	<form id="form1" method="post" action="${rootDir }/system/add.user.do" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<input type="hidden" name="TOKEN" id="TOKEN" value="${TOKEN}">
		<input type="hidden" name="pagetype" id="pagetype" value="add">	
		<input type="hidden" name="isuse" id="isuse" value="0">	
		<div class="pageFormContent" layoutH="56">
			<p>
				<label>编码：</label> 
				<input id="tCode" name="tCode"
					type="text" size="30" class="required lettersonly" />
			</p>
			<p>
				<label>名称：</label> 
				<input id="tName" name="tName" class="required" type="text" size="30" />
			</p>
			<p>
				<label>密码：</label> 
				<input id="password" name="password" class="required lettersonly" type="password" size="30" />
			</p>
			<p>
				<label>账户类型：</label> 
				<select id="userstat" name="userstat" class="required combox">
					<option value="0">收款账户</option>
					<option value="1">登录账户</option>
					<option value="2" selected>其他账户</option>
				</select>
			</p>
			<p>
				<label>备注：</label> 
				<input id="remark" name="remark" type="text" size="30" value="" alt="" />
			</p>
			<p>
				<label>说明：</label>
				<textarea cols="65" rows="5" id="introduction" name="introduction"></textarea>
			</p>
		</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>淇濆瓨</span></a></li>-->
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="button" onclick="javascript:save()">保存</button>
						</div>
					</div>
				</li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div></li>
			</ul>
		</div>
	</form>
</div>
